﻿using System;

namespace Library.OrmEnterpriseEntity {
	/// <summary>
	/// Update no effect exception. The exception throwed where user update or delete entity which may be updated by orther user
	/// </summary>
	public class UpdateNoEffectException : EnterpriseEntityException {
		/// <summary>
		/// Create UpdateNoEffectException instance
		/// </summary>
		/// <param name="entity"></param>
		public UpdateNoEffectException(GlobalEntity entity)
			: base(String.Empty) {
			Entity = entity;
		}
		/// <summary>
		/// Entity out of date which caused exception
		/// </summary>
		public GlobalEntity Entity { get; private set; }
	}
}
